package com.thero.core.chess;

/**
 * Created by wusk on 2017/11/27.
 */
public class Piece {
    private boolean pick;
    private Color color;

    public Piece(Color color){
        this.pick = false;
        this.color = color;
    }

    public Color getColor(){
        return this.color;
    }

    public boolean isPick(){
        return this.pick;
    }

    public void pickup(){
        this.pick = true;
    }

    public void unpick(){
        this.pick = false;
    }
}
